/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package digitaldreamers.games.ddmonsters.servers.gameserver.network.packets.receiving;

import digitaldreamers.libraries.games.servers.networkmanagement.abstracts.IConnectionHandler;
import digitaldreamers.libraries.games.servers.networkmanagement.packets.receiving.AbReceivablePacket;
import digitaldreamers.games.ddmonsters.servers.gameserver.components.PlayerComponent;
import java.io.DataInputStream;
import java.io.IOException;

/**
 *
 * @author BichThao
 */
public class RStartDuelRequest extends AbReceivablePacket {
    public RStartDuelRequest(IConnectionHandler connectionHandler){
        super(connectionHandler);
    }
    
    @Override
    protected void readData(DataInputStream DIS) throws IOException {
        mPacketId = DIS.readInt();
    }

    @Override
    public void execute() throws Exception {
         ((PlayerComponent)mConnectionHandler.getPlayer()).startDuel();
    }
}
